# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: prg <prg _at_ xannode _dot_ com>
# Contributor: Nico <d3sox at protonmail dot com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>

pkgname=haruna
pkgver=0.12.3
pkgrel=1
pkgdesc='Video player built with Qt/QML on top of libmpv'
arch=(loong64 x86_64)
url='https://apps.kde.org/haruna/'
license=(GPL3)
depends=(ffmpeg
         gcc-libs
         glibc
         kconfig5
         kconfigwidgets5
         kcoreaddons5
         kdeclarative5
         kfilemetadata5
         ki18n5
         kio5
         kirigami2
         kwindowsystem5
         mpv
         qt5-base
         qt5-declarative
         qt5-quickcontrols2
         qt5-x11extras)
makedepends=(extra-cmake-modules
             kdoctools5)
optdepends=('yt-dlp: YouTube support')
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('d0202e0060ae86e10c461e7529f6de6b67f8281bf7b82c845479f46772b9fa6f'
            'SKIP')
validpgpkeys=(4E421C6554B89766DF9B7A37E12AB207C8755905) # George Florea Bănuș <georgefb899@gmail.com>

build() {
  cmake -B build -S $pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
